﻿
using Model.Core;
using Models;
using SCADA_DAQ.ZEMT.Server;
using SIE.SCADA.SqlSugar;
using SIE.SCADA.ZemtDemo.Common;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIE.SCADA.ZemtDemo.ViewModel
{
    public class ManualViewModel 
    {
        
       

        public ManualViewModel()
        {
            
        }


        /// <summary>
        /// KJF 20210329 新增
        /// 手动获取工单
        /// </summary>
        private void GetWorkInfor()
        {

        }

        internal void GetWorkInfobByDatetime(string datetime,string linename)
        {
            WoInfoManager woInfoManager = WoInfoManager.CreateInstance();
            //woInfoManager.SengByManual(datetime);
            woInfoManager.Request(datetime, linename);
        }

        internal void GetUserInfoByUserCode(string userCode,string line)
        {
            EmployManager employManager = EmployManager.CreateInstance();
            employManager.Request(userCode, line);
        }

        internal void PostWorkFinishReport(string workID,string SN)
        {
            PlanManager planManager = PlanManager.CreateInstance();
            planManager.PostWorkFinishReportByWorkID(workID,SN);
        }

        internal void GetEquipmentByCode(string EquipmentCode,string line)
        {
            
                EquipManager equipManager = EquipManager.CreateInstance();
                equipManager.Request(EquipmentCode,line);          
        }
    }
}
